<include file="Inc/header" />
<script type="text/javascript">
    $(function(){
        $("#get").click(function(){
            var sum=0;
            var shiwei=$("#shiwei").val()
            var geiwei=$("#geiwei").val()
            var fangan=$("#fangan").find("option:selected").val();
        $.ajax({
        url:'/index.php/Admin/Cp/gethaoma/shiwei/'+shiwei+'/gewei/'+geiwei+'/fangan/'+fangan,
        dataType: "json",
        type:"POST",
        success:function(data)
        {
            $("#haoma").val(data.list)
            $("#num").val(data.count)
            $("#fujia").val(data.fujia)
        }
    });
        });

        $("#copyto").click(function () {
            window.clipboardData.setData("text", $("#haoma").val());
            alert("已复制到剪贴板");
        });

    });
</script>
<div id="body-wrapper">
    <!-- Wrapper for the radial gradient background -->

    <!-- End #sidebar -->
    <div id="main-content">

        <!-- Page Head -->
        <h2>取号</h2>
        <div class="content-box">


                <table>

                    <tr><td>上期开奖号码</td><td>
                        <input name="shiwei" id="shiwei" style="height: 80px;width:80px;font-size:70px;text-align:center;color:red;"  type="number" pattern="\d*" onclick="document.getElementById('shiwei').value=''"/>
                        <input name="gewei" id="geiwei" style="height: 80px;width:80px;font-size:70px;text-align:center;color:green;"  type="number" pattern="\d*" onclick="document.getElementById('geiwei').value=''"/>
                        <input type="button" name="update" id="get" value="提交" style="height: 80px;width:80px;text-align:center;"/>
                    </td></tr>
                    <tr><td>方案选择</td><td>
                       <select name="fangan" id="fangan">
                           <option value="1">胆码方案</option>
                           <option value="2">1368杀方案</option>
                       </select>
                    </td></tr>
                    <tr><td>号码</td><td>
                    <textarea id="haoma" style="height: 200px;width:300px;font-size:20px;text-align:left;color:#003366;" onclick="this.focus();this.select()" >

                    </textarea>   <input type="button" name="update" id="copyto" value="复制"/>
                    <input name="num" id="num">
                    </td></tr>
              <tr><td>附加号码</td><td>
                    <textarea id="fujia" style="height: 100px;width:200px;" onclick="this.focus();this.select()" ></textarea>
                    </td></tr>

                </table>
            </form>
        </div>


        <include file="Inc/footer" />